gdk/x11: Ensure to map the non-ewmh moveresize emulation window before use
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 7 May 2021 13:51:52 +0000 (15:51 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 7 May 2021 13:51:52 +0000 (15:51 +0200)
Otherwise, we don't deem it as able to be grabbed, which we intend to do
immediately after.

gdk/x11/gdksurface-x11.c

index fd5dabeaa195421d9ccd1129d6da0fa176b1109f..6fb6c9661670ce68d4780676a98b9cb23360a4ef 100644 (file)
@@ -4376,6 +4376,7 @@ create_moveresize_surface (MoveResizeData *mv_resize,
                                        NULL,
                                        -100, -100, 1, 1);
 
+  gdk_surface_set_is_mapped (mv_resize->moveresize_emulation_surface, TRUE);
   gdk_x11_surface_show (mv_resize->moveresize_emulation_surface, FALSE);
 
   status = gdk_seat_grab (gdk_device_get_seat (mv_resize->device),